<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<p v-for="stu in stus">{{stu}}</p>
			<hr />
			<p v-for="w in works" v-if="w.age > 45">{{w.name}},{{w.age}}</p>
		</div>
		<script type="text/javascript">
			new Vue({
				el: '#app',
				data: {
					stus: ['张三', '李四', '王五'],
					works: [{
						name: '德刚',
						age: 46
					}, {
						name: '于谦',
						age: 43
					}]
				}
			})
		</script>
	</body>
</html>
